#ifndef _D3D_INPUT_H_
#define _D3D_INPUT_H_

#include <dinput.h>
#include <d3d9.h>  
#include <d3dx9.h>

class D3DInput
{
public:
	D3DInput();
	~D3DInput();

	bool initialize(HWND hwnd, HINSTANCE hInstance);
	bool deviceRead(LPDIRECTINPUTDEVICE8 pDevice, void* pBuffer, long size);

private:
	LPDIRECTINPUT8 m_pD3DInputDevice;

	LPDIRECTINPUTDEVICE8 m_pKeyboardDevice;  
	char keyStateBuffer[256];

	LPDIRECTINPUTDEVICE8 m_pMouseDevice;
};

#endif